#ifndef GETFRIENDREQUEST_H
#define GETFRIENDREQUEST_H

#include "network/networkgetjsonlistrequest.h"
#include "network/networkgetjsonrequest.h"

class GetFriendIdResponse;
class GetFriendIdRequest : public Network::GetJSONRequest
{
    Q_OBJECT
public:
    GetFriendIdRequest(qint64 userId, int page);
private:
    GetFriendIdResponse *m_response;
    qint64 m_userId;
    int m_page;

private:
    QUrl url() const;

private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;

public:
    void setPage(int page);
    inline int page() {
        return m_page;
    }

};

#endif // GETFRIENDREQUEST_H
